Content Understanding: Barcodes Not Showing

Syed Chishty 0 Reputation points
2026-07-02T09:24:13.3566667+00:00

I've been using content understanding for quite a while, I remember it was extracting barcodes before but now there are no barcodes in the result even tho the document has it. Did something change or do I have to enable any setting? I have enabled figure settings and return details and return formula everything but still no barcodes. Using the GA Version

Azure Content Understanding in Foundry Tools
0 comments No comments

2 answers

Sort by: Most helpful
  1. Syed Chishty 0 Reputation points
    2026-07-03T06:30:32.3+00:00

    Hi @Yehor Diriavka ,

    Thank you for the response, I have done all of that and still I don't get barcodes in output. My config settings are as below:

    	"baseAnalyzerId": "prebuilt-document",
    	"config": {
    		"returnDetails": true,
    		"enableOcr": true,
    		"enableLayout": true,
    		"enableBarcode": true,
    		"enableFormula": false,
    		"enableFigureDescription": false,
    		"enableFigureAnalysis": false,
    		"chartFormat": "chartjs",
    		"tableFormat": "html",
    		"enableSegment": false,
    		"omitContent": false,
    		"segmentPerPage": false,
    		"annotationFormat": "markdown"
    	},
    

    it used to come in a field called barcodes and I know it doesn't come in schema fields, but its not coming in the response at all. I have tested it in content understanding studio and its not being detected, previously it was getting detected. In the above config when I created the analyzer from studio it didnt have enableBarcode field at all, even after adding it results didn't change.

    Was this answer helpful?


  2. Yehor Diriavka 0 Reputation points
    2026-07-02T13:53:09.5466667+00:00

    Hello @Syed Chishty ,

    Welcome to Microsoft Q&A, and thank you for describing the issue.

    According to the Azure AI Content Understanding documentation for the GA 2025-11-01 API version, barcode extraction is supported for document-based analyzers.

    I would recommend checking the following settings.

    First, verify that your analyzer uses a document-compatible base analyzer, such as:

    "baseAnalyzerId": "prebuilt-document"
    

    You may also verify whether your analyzer is based on prebuilt-read or prebuilt-layout.

    If the analyzer uses prebuilt-image, barcode extraction might not work in the same way because image analyzers are not intended for document content extraction.

    Next, check the analyzer configuration and confirm that barcode extraction is enabled:

    "config": {
      "returnDetails": true,
      "enableBarcode": true
    }
    

    The enableBarcode option detects and extracts barcodes and QR codes. It is enabled by default for document-based analyzers, but I would recommend confirming that it has not been explicitly set to false.

    The figure-related settings are separate from barcode extraction. Options such as enableFigureDescription and enableFigureAnalysis are used for charts, diagrams, and figures. Barcode extraction is controlled by enableBarcode.

    Please also check where you are looking for the barcode result. Barcodes are not returned as custom schema fields. They are returned in the barcode collection inside the document analysis response.

    A detected barcode result can include:

    Barcode type

    Decoded value

    Confidence score

    If you recently moved from a preview API version to the GA 2025-11-01 version, I would also recommend reviewing and recreating the analyzer definition. The GA version requires an explicit models object in the analyzer configuration.

    You should also confirm that the barcode format is supported. Supported formats include QR Code, PDF417, UPC-A, UPC-E, Code 39, Code 128, EAN-8, EAN-13, and other documented barcode types.

    If you use Markdown output, the barcode can appear in the following format:

    ![{barcode.kind}]({barcode.path} "{barcode.value}")
    

    Finally, you can test the same document in Content Understanding Studio and verify whether the barcode is detected in the visual result before comparing it with the API response.

    I hope these recommendations help.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.